package com.ee.chat.common.service;

import com.ee.chat.common.bean.Result;

import java.util.Map;

/**
 * @Author Shane
 * @Date 2019/10/22 22:29
 */
public interface IPushMessageService {
    Result getNewestPushMessage(Integer userId) throws Exception;

    Result getPushMessage(Integer userId, Integer page, Integer limit) throws Exception;

    /**
     * 清除历史消息
     * @Author Shane
     * @Date 2020/4/20 16:37
     * @param
     * @return
     */
    Result cleanPushMessage(Integer userId) throws Exception;

    void pushGroupMessage(String title, String content, Map<String, String> data) throws Exception;

    void pushNewUserMessage(Integer userId) throws Exception;

    void pushGeneralMessage(Integer userId, Map<String, String> data) throws Exception;
}
